const FRIEND_TABLE_SQL = """
CREATE TABLE t_friends 
(
  id CHAR(19) PRIMARY KEY, 
  name CHAR(20),
  phone CHAR(11)
)
""";

class FriendModel {

  final String id;

  final String name;

  final String phone;

  FriendModel(this.id, this.name, this.phone);

  static FriendModel fromJson(Map<String, dynamic> map) {
    return FriendModel(map["id"], map["name"], map["phone"]);
  }

  String toJson() {
    return """
    {
      "id" : "${id}",
      "name" : "${name}",
      "phone" : "${phone}"
    }
    """;
  }

  @override
  String toString() {
    return 'FriendModel{id: $id, name: $name, phone: $phone}';
  }


}